package com.xlserver.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("consultation_info")
public class Consultation {
    @TableId(value = "hid",type = IdType.AUTO)
    private Integer hid;

    @TableField("cid")
    private Integer cid;

    @TableField("uid")
    private Integer uid;

    @TableField("h_beginTime")
    private String beginTime;

    @TableField("h_endTime")
    private String endTime;

    @TableField("cRank")
    private Integer crank;

    public Consultation() {
    }
    //createChat中初始会话
    public Consultation(Integer uid, Integer cid) {
        this.cid = cid;
        this.uid = uid;
    }

    public Consultation(Integer hid, Integer cid, Integer uid, String beginTime, String endTime, Integer crank) {
        this.hid = hid;
        this.cid = cid;
        this.uid = uid;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.crank = crank;
    }
}
